projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e560df
)
libxl: Avoid returning empty path from libxl_console_get_tty
author
Anthony PERARD
<anthony.perard@citrix.com>
Thu, 15 Jan 2015 17:55:56 +0000
(17:55 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Mon, 19 Jan 2015 17:21:31 +0000
(17:21 +0000)
This could happen if xenconsoled have not populate the xenstore key yet.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl.c
b/tools/libxl/libxl.c
index 11cf0e126d5f542a429c20516f10368f66ce80a8..82227e82a77e9158516abafe78bd23decd76ba78 100644
(file)
--- a/
tools/libxl/libxl.c
+++ b/
tools/libxl/libxl.c
@@
-1734,7
+1734,7
@@
int libxl_console_get_tty(libxl_ctx *ctx, uint32_t domid, int cons_num,
}
tty = libxl__xs_read(gc, XBT_NULL, tty_path);
- if (!tty) {
+ if (!tty
|| tty[0] == '\0'
) {
LOGE(ERROR,"unable to read console tty path `%s'",tty_path);
rc = ERROR_FAIL;
goto out;